<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
</head>
<body>
<script>
    var href = window.location.href;
    var pram = href.split("?");
    console.log(decodeURI(href));

    var updateFlag = false;
    var href = window.location.href
    if (href.split("?").length > 1) {
        var host = href.split("?")[1];
        var params = host.split(",");
        var hostURL = params[0];
        hostURL = hostURL.split("&")[0];
        hostURL = hostURL.split("=")[1];
        hostURL = hostURL.split("/c")[0];
        //   alert(hostURL);
        var CA_Name = "";
        for (var i = 0; i < params.length; i++) {
            if (params[i].split("=")[0] == "OU" || params[i].split("=")[0] == "ou") {
                CA_Name = params[i].split("=")[1];
                break;
            }
        }
        // alert(CA_Name);
        window.localStorage.CA_Name = CA_Name;
        window.localStorage.hostURL = hostURL;
        console.log(hostURL + "/cmcp");
    }

    // window.location =hostURL+"/cmcp"
    window.location = "views/login/login.html";// + pram[1];
</script>
</body>
</html>
